﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AllInOne.Entity
{
    /// <summary>
    /// 省名简称--Provincial abbreviation
    /// </summary>
    public class ProvinceAbbModel
    {
        public int Id { get; set; }
        public string ProvinceAbbName { get; set; }
        public string Describe { get; set; }
    }
    static class MyConst
    {
        ///// <summary>
        ///// 称重显示器,为了保持版本兼容性，增加型号的时候增加到后面
        ///// </summary>
        //public enum Device : byte
        //{
        //    HengKe_JZ, HengKe_CX, KeLi_D2008, KeLi_D2008_1, Maxxis_5, Toledo_T800, XK3102_S, XK3190_DS3, HT9800_D7, DS822_X6
        //}

        /// <summary>
        /// 车牌的省代码部分
        /// </summary>
        public enum PlateProvince : byte
        {
            新, 甘, 蒙, 豫, 黑, 辽, 青, 宁, 陕, 晋, 冀, 京, 藏, 川, 渝, 吉, 鲁, 津, 云, 贵, 鄂, 皖, 苏, 沪, 桂, 湘, 赣, 浙, 粤, 闽, 琼, 空, 军, 海, 北, 沈, 兰, 济, 南, 广, 成//,WJ
        }
        /// <summary>
        /// 车牌的省后面的部分
        /// </summary>
        public enum PlateLetter : byte
        {
            A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z
        }

        /// <summary>
        /// 货物名字--作为比较时候使用
        /// </summary>
        public enum GoodsName
        {
            硫酸, 铜粉, 其他
        }

        //几个日志文件名字
        const string ImportLog = "调用接口日志";
        const string SetCardLog = "发卡操作日志";
        const string IdentityLog = "身份证识别日志";
    }


    public class Record
    {
        public string XuHao { get; set; }
        public string WuLiao { get; set; }
        public double PiZhong { get; set; }
        public double MaoZhong { get; set; }
        public double JingZhong { get; set; }
        public string DanWei { get; set; }
        public DateTime WeightTime { get; set; } = DateTime.Now;
        public string BeiZhu { get; set; }
        public string SiBangYuan { get; set; } = "CommonData.CommonData.CurrUser.UserName";
        /// <summary>
        /// 本条记录是否称重完成
        /// </summary>
        public bool IsCompleted { get; set; }

        public int WeightMode { get; set; } = 1;
    }
}
